#include <QtGui/QApplication>
#include "mainwindow.h"
#include "database.cpp"

int main(int argc, char *argv[])
{
    QApplication a(argc, argv);
    if (!createConnection())
        return 1;
    
    QTranslator translator(0);
    QTranslator translator2(0);

    MainWindow w(0, &translator, &translator2);
    w.show();
    return a.exec();
}
